import numpy as np
arr = np.array([[1, 2, 3], [4, 5, 6]])

# 数据类型转换
float_arr = arr.astype(np.float64)
print("转换为浮点数:", float_arr.dtype)

# Output:转换为浮点数: float64